<template>
    <editor api-key="6wahax33qilk99nssxocu5usp2mca5blqxepoglvq7yxnu0i"
        :tinymceScriptSrc='tinymceUrl' :init="{
    width: 800,
    height: 500,
    images_upload_handler: onUpload,
    language: 'zh_CN',
    menubar: false,
    plugins: [
        'advlist autolink lists link image charmap print preview anchor',
        'searchreplace visualblocks code fullscreen',
        'insertdatetime media table paste code help wordcount'
    ],
    toolbar: [
        'undo redo | bold italic backcolor | alignleft aligncenter alignright alignjustify \
                                                                              bullist numlist outdent indent | removeformat',
        'styleselect  \
                                                                              cut copy paste | fontsizeselect | link unlink openlink image preview'
    ],
}" />
</template>
<script setup lang="ts">
import { onUpload } from '@/utils/tintmce';
import Editor from '@tinymce/tinymce-vue';
const tinymceUrl = '/tinymce/tinymce.min.js';
</script>